﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using RestSharp;
using TownCrier.Infrastructure.Entities;
using Moq;
using CassiniDev;
using TownCrier.Channels.ChannelTools;

namespace TownCrier.Tests.Channels {

    
    public class RestChannelTestBase {
        //protected Mock<IRestClient> _client;
        //protected Mock<IRestRequest> _request;
        protected RestClient _client;
        protected RestRequest _request;
        protected Event _sourceEvent;
        //protected ChannelSettings _settings;
        //protected string _compositeString;
        //protected BaseChannelSection _settings;
        protected static CassiniDevServer _server;


        public RestChannelTestBase() {
            //_client = new Mock<IRestClient>();
            //_request = new Mock<IRestRequest>();
            _client = new RestClient();
            _request = new RestRequest();
            _sourceEvent = GenerateEvent();
            //_settings = new ChannelSettings(System.Configuration.ConfigurationManager.AppSettings["TwitterOauth"]);
            //_compositeString = System.Configuration.ConfigurationManager.AppSettings["TwitterOauth"].ToString();
            //_settings = System.Configuration.ConfigurationManager.GetSection(sectionName) as BaseChannelSection;
            
        }


        private Event GenerateEvent() {
            DateTime eventstart = DateTime.UtcNow.AddDays(2);

            return new Event {
                Title = "Test event", Topic = "Moles", Start = eventstart, End = eventstart.AddHours(4),
                URL = new Uri("http://www.anthroserbia.org"),
                UserGroup = "Dev UG",
                Venue = new Venue {
                    Name = "MSO",
                    City = "Belgrade",
                    Street = "Makedonska 30",
                }
            };

        }
    

    }
}
